




#import "ViewController.h"

@implementation ViewController

-(void) didReceiveMemoryWarning

{
    [super didReceiveMemoryWarning];
}

-(IBAction) changeBackgroundColor: (id) sender
{
    UIButton *buttonPressed = (UIButton*) sender;
    if (buttonPressed ==redButton)
    {
        [self.view setBackgroundColor: [UIColor redColor]];
    }
    else if (buttonPressed ==redButton)    {
        [self.view setBackgroundColor: [UIColor orangeColor]];
    }
}

#pragma mark - View lifecycle
-(void) viewDidLoad
{
    [super viewDidLoad];
}
@end